body {
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  width: 100%;
  background-color: #000;
}
.carousel {
  position: relative;
  perspective: 800px;
  margin: 160px auto;
  width: 300px;
  height: 200px;
  text-align: center;
  perspective-origin: 50% 10%;
}
.images {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 3s;

  &:hover {
    animation-play-state: paused;
  }
}
.image {
  position: absolute;
  width: 90%;
  top: 5%;
  left: 5%;
  -webkit-box-reflect: below 10px -webkit-linear-gradient(tranparent 10%, rgba(255, 255, 255, 0.3));
  img {
    pointer-events: none;
    user-select: none;
    border-radius: 5px;
  }
}
@for$i from 1 through 6 {
  .image:nth-child(#{$i}) {
    transform: rotateY(#{($i - 1) * 60}) translateZ(300px);
    &:hover {
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
  }
}
.image img {
  display: block;
  width: 100%;
  height: 100%;
}
